﻿using AutoMapper;
using B.S.Ingredients.APIRead.Application.Command.EnterCommand;
using B.S.Ingredients.APIRead.Application.Command.ImmunityCommand;
using B.S.Ingredients.APIRead.Application.Command.Products;
using B.S.Ingredients.APIRead.DTOs;
using B.S.Ingredients.Domain;

namespace B.S.Ingredients.APIRead
{
    public class AutoMapperProfile : Profile
    {
        public AutoMapperProfile()
        {
            {
                CreateMap<Product, ProductDTO>().ReverseMap();
                CreateMap<ProdictUpdateCommand, Product>().ReverseMap();
                CreateMap<ImmunitUpdateCommand, Immunity>().ReverseMap();
                CreateMap<EnterCreateCommand, EnterClass>().ReverseMap();
            }
        }
    }
}
